﻿namespace FlyingEye.HttpServices.Requests
{
    /// <summary>
    /// 设备写入任务
    /// </summary>
    public class WriteValueRequest : RequestBase
    {
        public WriteValueRequest(
            string deviceName,
            string address,
            string dataType,
            string value) : base(deviceName)
        {
            Address = address;
            DataType = dataType;
            Value = value;
        }

        /// <summary>
        /// 写入地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public string DataType { get; set; }

        /// <summary>
        /// 需要写入的值
        /// </summary>
        public string Value { get; set; }
    }
}
